package com.think.teaching.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.think.teaching.model.ArticleType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 资源类型 Mapper 接口
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
@Mapper
public interface ArticleTypeMapper extends BaseMapper<ArticleType> {
	@Select("Select id,name FROM article_type WHERE id=#{id}")
	ArticleType getInfoById(@Param("id")Integer id);
}
